<!-- Content Area -->
<div id="content"> 
  
  <!-- Component Title -->
  <div class="pagetitle icon-48-module">
    <h2>Manager: Testimonials</h2>
  </div>
  
  <!-- System Messages -->
  
  <div id="system-message-container"> {if isset($msg)}
    <dl id="system-message">
      <dt class="message">Message</dt>
      <dd class="message message">
        <ul>
          <li>{$msg}</li>
        </ul>
      </dd>
    </dl>
    {/if} </div>
  
  <!-- Sub Menu Navigation -->
  <div class="subheader">
    <h3 class="element-invisible">Sub Menu</h3>
    <div id="no-submenu"></div>
  </div>
  
  <!-- Toolbar Icon Buttons -->
  <div class="actionbar-box">
    <div class="module">
      <h3>Toolbar</h3>
      <div class="actionbar-list" id="actionbar">
        <ul>
          <li id="actionbar-popup-new">
          <a class="modal" href="{$link_add_testimonials}" >
          <span class="icon-32-new">
          </span>
          {$_ADD_NEWS}
          </a>
          </li>
          <li id="actionbar-trash"> <a href="{$link_add_cat}" class="actionbar" > <span class="icon-32-new"> </span> {$_ADD_CATEGORY} </a> </li>
          <li class="divider"> </li>
        </ul>
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  <!-- Beginning of Actual Content -->
  <div id="element-box">

     <div align="right" style="margin-bottom:5px;"><strong>{$_CATEGORY}:</strong> 
     <select name="cat_id" id="cat_id" onchange="redirectToUrl('{$link_list_testimonials}'+this.value)">           
     <option value="0">{$_SELECT_USER_TYPE}</option>
      {html_options options=$cats selected=$cat_id}
     </select></div>
    <table   class="adminlist">
    <thead>    
          <tr>
            <th width="30" align="center" class="row_top_title">#ID</th>
            <th width="40%" class="row_top_title">{$_TITLE}</th>
            <th  align="left" class="row_top_title">{$_CATEGORY}</th>
            
            <th  align="center" class="row_top_title">{$_DATE}</th>
            <th  align="center" class="row_top_title">{$_HITS}</th>           
            <th  align="center" class="row_top_title">{$_ORDER} 
            {if $allow_testimonials}
            &nbsp;&nbsp;&nbsp;<a href="javascript:;" id="btn_order" onclick="document.frmOrder.submit();"><img src="{$php5WebPath}/images/save.png" width="16" height="16" border="0" align="absmiddle" /></a>
            {/if}
            </th>
             <th width="60" align="center" class="row_top_title">{$_PUBLISHED}</th>
            {if $allow_testimonials}
            <th width="60" align="center" class="row_top_title">Action</th>
            {/if}
          </tr>
          </thead>
      <form action="{$link_save_order}" method="post" name="frmOrder">
          {foreach from=$rows item=row}
          <tr class="row1">
            <td width="30" height="25" align="center"  class="center">{$row->id}</td>
            <td height="25"  class="center">           
            <a href="#">{$row->title}</a>            
            {if $row->hot_news==1}<img src="{$php5WebPath}/images/hot.gif" />{/if}
            </td>
            <td  align="left"  class="center">{$row->name}</td>
            
            <td  class="center">{$row->post_date}</td>
            <td   class="center">{$row->views}</td>            
            <td   class="center">
              <input name="ordering[{$row->id}]" type="text" style="width:20px; font-size:11px; text-align:center;" onkeypress="return isNumberKey(event)" value="{$row->ordering}" maxlength="3" /></td>
            <td align="center"  class="center">
            {if $row->publish==1}
            <img src="{$php5WebPath}/images/published.gif" />
            {else}
            <img src="{$php5WebPath}/images/unpublished.gif" />
            {/if}
            </td>
             {if $allow_testimonials}
            <td class="center"><a href="{$link_edit_testimonials}{$row->id}">{$_EDIT}</a><br />              <a href="javascript:;" onclick="delItem('{$link_del_testimonials}{$row->id}', '{$_MSS_DEL_NEWS}')">{$_DELETE}</a></td>
            {/if}
          </tr>
          {foreachelse}
          <tr>
            <td height="30" colspan="9" align="center">No testimonials.</td>
          </tr>
          {/foreach}
          </form>
           <tr>
      	<td colspan="9" align="center" class="row_bottom">{$paging}</td>
       </tr>    
        </table>
    
    <div class="clr"></div>
  </div>
  <!-- end of element-box -->
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>
  

<div style="padding:10px;">
    <div class="header"><span class="pathway">HOME &gt; </span> {$_NEWS}</div>           
     <div class="outer-form"> 
 
  </div>
</div>        

